package com.oil.petro.eshop.service;

import com.oil.petro.eshop.bean.CartBean;
import com.oil.petro.eshop.entity.Account;
import com.oil.petro.eshop.entity.Order;
import java.util.List;

public interface OrderService {

    public void saveOrder(Order order);

    public void updateOrder(Order order);

    public void addOrder(int accountId, int productId, int quantity);

    public boolean isEmpty(int accountId, int productId);

    public Order getOrder(int accountId, int productId);

    public List<CartBean> getOrders(int accountId);

    public void removeOrder(int orderId);

    public void removeOrders(int accountId);

    public float getTotalCost(int accountId);

}
